Jump to content
Sign in to follow this  
deaus

A few questions

Recommended Posts

Hi, first off its important i say that im a complete n00b to this entire scripting and editing thing, so i know very little. I was wonding if i could get help with 5 things, i tried using search but i failed doing it, and i couldnt get what i was looking for (but that may be just caus im useless... huh.gif )

1. How would i go about spawning a jet, or a tank, or a squad of men etc... I cant really work it out. The situation is hit a trigger and plane spawns and flies past.

2. How can you make a jet or air vehical shoot a target, i think its sumthing like: dotarget, but i dont know how to make the plane actually shoot missiles or drop its bombs..

3. How can you make a jet or arty attack and object such as a building, or bridge or fuel station etc.

4. How do you tell and object such as a fuelstation to just blow up... im guessing setdamage 1, but i have no idea what the fuel station is called, or how to quote its name..

5. How can you make a random explosion go off, like a shell hit a location. i would guess "whatevershellis" (setmarkerpos "marker1").. sorry dont know very much of this

thank for any help

Share this post


Link to post
Share on other sites

You have to know what to search for

Search For:

Createunit

http://community.bistudio.com/wiki/createUnit

Createvehicle

http://community.bistudio.com/wiki/createVehicle

have examples of how to create units and vehicles.

You can put the createunit code into the OnAct field of a trigger. But the createvehicle example is using a local variable and must be used in a script.

Search for:

Dotarget

dofire

(or fire)

AND look up ammonames/types they are listed here-on the biki and over at OFPEC.

Because you need the name of the weapon the vehicle/unit is firing....

http://www.flashpoint1985.com/cgi-bin....fb812e3

Your next question would involve a gamelogic placed at the building to be attacked and then will relate to the above question.

Either place a gamelogic at the building in the editor or createvehicle a "Logic" from the first question. The logics are a new concept for some, Im sure other games use them but its an object that exists purely for reference. Invisible,aimable,placable,nameable reference objects that you can use for most anything......ok if thats confusing you just ignore this part....

For blowing up fuelstation you can create a satchel at the fuelstation and set it off with code.

here is a thread for setting off a bomb:

http://www.flashpoint1985.com/cgi-bin....ipebomb

Your last question relates to the above one.

Its hard to start search here sometimes because you dont know the specific exact term relating to the question and Ive tried to list them here.

Im not sure exactly how to do what you need how you need it for your mission so If I tell you how I would to it then I might be confusing you with too much info and I do think those threads I linked will get you started in good order.

Definitely check out the COMREF over at OFPEC.com even just perusing the commands can give new insights to questions you didnt realize you needed an answer for.

Aaaannd thats all I got for now...

Share this post


Link to post
Share on other sites

wow, that you very much, you pretty much cleared up everything biggrin_o.gif thanks

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  

×