Jump to content
Sign in to follow this  
kocrachon

Preprocessor error 7

Recommended Posts

So I am geting a preprocessor error on a script that use to work fine in ArmA 2, anyone able to help me spot whats wrong?

Right now I have an event handler for firing, and this is what I have.

ussoldier1 addEventHandler ["fired", { _this execVM "extraction.sqf"; ussoldier1 removeAllEventHandlers "fired";}];

This is still a work in process to get everything added, but I want to narrow down the error first.

_ammotype = _this select 4;

? _ammotype iskindof "SmokeShellYellow" : goto "smokeg";

exit;


#smokeg

hint format["Ammo type just fired is %1",_ammotype];

bird1 sidechat "Angel One inbound for pickup"; 


_smokeg = nearestObject [player, _ammotype];

~4

_pos = position _smokeg;
_squad = helo1
_helo = bird1

_hpad = "Land_HelipadSquare_F" createVehicle _pos;
_hpad setpos _pos;

exit;

Share this post


Link to post
Share on other sites

you are using _this execVM "extraction.sqf" but the code looks like .sqs

maybe try _this exec "extraction.sqs" or converting to .sqf

_ammotype = _this select 4;

if (_ammotype iskindof "SmokeShellYellow") then 
{
hint format["Ammo type just fired is %1",_ammotype];

bird1 sidechat "Angel One inbound for pickup"; 


_smokeg = nearestObject [player, _ammotype];

sleep 4;

_pos 	= position _smokeg;
_squad 	= helo1
_helo 	= bird1

_hpad = "Land_HelipadSquare_F" createVehicle _pos;
_hpad setpos _pos;
};

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  

×