View Full Version : help
i am krazy
09-07-2007, 03:28 PM
how can i make it so that when a playe picks up a money crate, and explosion occurs, i tried when player enters area, but the this player, local player things confuse me
Me Myself & Pi
09-07-2007, 10:19 PM
<This Player> When used in a script, it means the player that the script is in that player's script folder. So if you put in a script that uses <This Player> & you put the script into the "PlyrCivilian" folder then <This Player> is considered "PlyrCivilian"
<This Player's Enemy> When used in a script, it meanse the enemy of the player that the script is in it's folder. If you create a player, lets say, a USA player with a GLA openent. Then you put the script that uses <This Player's Enemy> into the USA player's folder then <This Player's Enemy> is the GLA player.
<Local Player> The humen player in a skirmish or campaign map. If used in multiplayer, it will cause a mismatch. Not sure why though.
You can use <This Player's Enemy> in a multiplayer as the host of the game. Put the scritpt(s) that uses it in the "PlyrCivilian" folder. That should do it! I'm not sure why this works, because the civilian player considers all humen & skirmish players as nuetral. So if you want to refer to the host of the game use <This Player's Enemy> & put the script in the PlyrCivilian folder. You can use <Local Player> but that only works in skirmishs or campaings.
Zancloufer27
09-08-2007, 08:41 PM
1) Put a waypoint where the crate is.
2) put an area around the crate
3) When (insert Civilian Player here) has less than 1 (insert type of crate here)
4) IF True:
Create a (insert bomb object from system lists) on (insert waypoint name here)
Works better
CaptainIraq
09-11-2007, 08:10 PM
1) Put a waypoint where the crate is.
2) put an area around the crate
3) When (insert Civilian Player here) has less than 1 (insert type of crate here)
4) IF True:
Create a (insert bomb object from system lists) on (insert waypoint name here)
Works better
Or you could do it with barrels. Plant a barrel on the exact same spot as the crate, and have it be killed once there is no crate in the area, or do multiple crates...
chaoscontrol512
09-12-2007, 09:35 PM
1) Put a waypoint where the crate is.
2) put an area around the crate
3) When (insert Civilian Player here) has less than 1 (insert type of crate here)
4) IF True:
Create a (insert bomb object from system lists) on (insert waypoint name here)
Works better
For something like this, what I would do is modify CINEExplBox (the bomb object Zan was talking about) through map.ini editing:
Object CINEExplBox
; remove the default die
RemoveModule ModuleTag_DIE
AddModule
Behavior = InstantDeathBehavior ModuleTag_05
FX = WeaponFX_DemoTrapDetonation ; not sure if I need this here, since it appears in the code for DemoTrapDetonationWeapon :\
End
End
AddModule
Behavior = FireWeaponWhenDeadBehavior ModuleTag_06
DeathWeapon = DemoTrapDetonationWeapon
StartsActive = Yes
End
End
End
vBulletin® v3.8.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.