Forum

> > CS2D > Maps/Editor > Random action on map.
Forums overviewCS2D overview Maps/Editor overviewLog in to reply

English Random action on map.

2 replies
To the start Previous 1 Next To the start

old Random action on map.

BuTaJIuK
User Off Offline

Quote
Hello guys! help me... I have entities: dynwall (name: wal1), dynwall(name: wal2), start(name: start1), if(name: if1). How to make the every start round(random) was used one of dynwall?

old Re: Random action on map.

Cure Pikachu
User Off Offline

Quote
Trigger one random entity (in this case a dynamic wall) every round start?
1
2
3
4
addhook("startround","randomtrig")
function randomtrig()
	parse("trigger 'wal"..math.random(1,2).."'")
end
Though the parameters in
math.random
will differ depending how many dynamic walls you want the script to affect.
edited 2×, last 12.02.17 08:50:14 pm
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview