Page 1 of 1

trigger use

Posted: Fri Jun 20, 2003 6:00 am
by 7th Es Cyborg

Code: Select all


spawn trigger_use "targetname" "my_trigger" "origin" "123 456 789"

how can I set the size of the trigger...

Code: Select all

$my_trigger setsize (0 0 0) (18 18 18)

??? or am i way off here......

Posted: Fri Jun 20, 2003 9:05 am
by jv_map
That is ok but it will make your trigger appear near (0 0 0).

You'll have to move it later.

Posted: Fri Jun 20, 2003 8:48 pm
by tltrude
What would happen if you did this?

Code: Select all

spawn trigger_use "targetname" "my_trigger" "origin" "123 456 789" "scale" "2"

Posted: Sat Jun 21, 2003 7:28 am
by jv_map
You cannot scale a trigger since it's not a model.

Maybe you could scale it if it has a size though.

Like:
local.trigger = spawn trigger_use origin (123 456 789)
local.trigger setsize (0 0 0) (18 18 18)
local.trigger scale 2

Will this message thread help my me?

Posted: Fri Jun 27, 2003 7:18 pm
by IvanTheTerrible
Will this message thread help me to add usable weapons to existing MOHAA DM maps using only scripting?

Posted: Fri Jun 27, 2003 7:56 pm
by 7th Es Cyborg
to add in weapons do this:

local.spawnweapon1 = spawn models/weapons/weapon.tik
local.spawnweapon1.origin = ( xxx.xx xxx.xx xxx.xx ) use coord to find where you want to spawn it
local.spawnweapon1.angle = -90 direction you want it to face
local.spawnweapon1 cnt 1 total times you want the weapon to respawn, if you want it to keep popping back up don't include this line

Need to add in a static weapon

Posted: Fri Jun 27, 2003 10:43 pm
by IvanTheTerrible
Thanks for the info Cyborg, but I need to add a static weapon (Flak88). I need to do this using only scripting. I tried the code as you specified, but the weapon gets added and is not usable. I'm guessing I need to spawn a trigger somehow.

Posted: Sat Jun 28, 2003 7:17 am
by 7th Es Cyborg
a standard flak88 isn't useable by default, there is a mod floating around some where that will make it useable for multiplayer.

Posted: Sat Jun 28, 2003 1:29 pm
by mohaa_rox
this useable flak tut is no more, but ask surg.