Jump to content
Sign in to follow this  
Codester

Script Help!

Recommended Posts

Can someone please help me out with the scripts? I am not sure how the whole scripts thing works. I found a script to make vehicles blow up, but what if I want to blow a person up? like there wearing an IED. I just want to transfer it from a vehicle to a person. Where can I find scripts at?

Share this post


Link to post
Share on other sites

Double click the "suicide bomber". Name him u1 in hes name box middle right side. Now make a trigger and add the Trigger info bellow. When u1 is less than 5m from the player (you) the trigger will spawn in a GBU laser guided bomb, which you wont see since it will be explode instantly, and kill both u1 and player (you). Lastly it deletes the suicide bomber unit u1.

Unit name: u1

Trigger:

Con: u1 distance player < 5

Act: bomb = "Bo_GBU12_LGB" createVehicle getPos u1; deletevehicle u1;

Road bomb trigger: (No sync)

------------------

Con: player distance explosion < 5

Act: bomb = "Bo_GBU12_LGB" createVehicle getmarkerPos "explosion"; deletevehicle explosion;

Other: "grenade"

or on unit:

bomb = "Bo_GBU12_LGB" createVehicle getPos car;

suicde unit blow if dmg:

Trigger act on unit type present.

con: ((damage car) > 0.1);

Ack: bomb = "Bo_GBU12_LGB" createVehicle getPos car;

Share this post


Link to post
Share on other sites
There are will be less people visit scripting section than this one, so it's understandable to post scripting thread here.

Nope, it is NOT.

There is a mission section on those forums for a reason

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×