Forum Jump :

Author Message

Posts: 6

Level: Member

Country: uk
Location: London
In-game name: Dave D

#105383 Posted at 2011-06-03 20:29        
Hello, I have attached a script to my unit in the Editor with a MPEventHandler (MPRespawn)

In the unit's init I put an eventhandler for mp respawn and wrote the external script.

if(player in xarray)&&(player iskindof "BAF_Soldier_L_DDPM") then {
player setVehicleInit "   

But I am confused to this point as the -showscripterrors gives me the error

if(player in xarray)&&(player iskindof "BAF_Soldier_L_DDPM") |#|then {

Error then: Type Bool, expected if

Where "x" is a placeholder for what I wish to do

As to this I am confused, as I cannot make sense how the engine can see a simple code command as a boolean.
Some help would be appreciated, please.

This post was edited by Double Doppler (2011-06-04 11:29, ago)