Jump to content
Sign in to follow this  
Horner

Vehicle Buying

Recommended Posts

Okay I have a question. Okay I have a script where i can go to different shops and buy things but I need to know how to script when i buy a skoda how to make it spawn on a marker i placed? Seems so simple yet I just dont

know how

this is a script i have for an m9 i want something basically the same as this if possible

if (money < 115) then

{

player1 groupChat format ["You can not afford this item. You only have $%1", (money)];

} else {

money = money - 115;

player1 addWeapon "M9SD";

player1 groupChat format ["you bought a M9 Silenced and have $%1 remaining", (money)];

};

Ok i have a good script but it isnt working dang.

Edited by Horner

Share this post


Link to post
Share on other sites

If the marker is named "mkr_spawnhere" then the code should be....

_car = "Skoda" [url="http://community.bistudio.com/wiki/createVehicle"]createVehicle[/url] (getMarkerPos "mkr_spawnhere");

Share this post


Link to post
Share on other sites

yeah dude, I had like exactly this, but ill try that tomorrow morning, been scripting all night thanks though I had something different that i thought would work

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  

×